<button class="btn btn-default no-print" id="print_btn" type="submit" onclick="print_w()">打印</button>
<div class="print">
    {volist name="list" id="vo"}
    {if condition="$i neq 1"}
    <!-- <p style="height:0.2cm"></p> -->
    {/if}
    
    <div class="table-boder">
         <!-- <div style="height: 1cm;padding-top: 10px;">{$vo.name}【{$vo.number}】</div>  -->
        <div class="qrcod_data" style="float:left">
            <input type="hidden" class="qrcode_txt" value="{$vo.qrcodeval}">
<!--            <img  style="height:220px;width:220px;margin-left: -10px;" src="{$vo.qrcode}" width="220" height="220"/>-->
            <div class="qrcode"></div>
        </div>
        <div  class="limt">
            <div>仓库名称：{$vo.houseName}</div>
            <div>{$vo.name}</div>
            <div>编码：{$vo.number}</div>
            <div>属性：{$vo.type_text}</div>
        </div>
    </div>

    {if condition="$i neq count($list)"}
    <div class="pagebreak"></div>
    {/if}
    {/volist}
</div>
<script>
  function print_w(){
      var div=document.getElementById('print_btn');
      div.style.cssText="display:none"
      div.style.cssText="display:inline"
         window.print();
  }

</script>
<style>
    .qrcode{
        width: 90px;
        height: 90px;
    	padding-left:5px;
    }
    .limt{
       display: flex;
       height: 130px;
       flex-direction: column;
       justify-content: space-between;
    	text-align:left;
    	padding-left:48px;
    	
    }
    .print{
        margin-top:0.2cm;
    }
    .table-boder{
        width: 9cm;
        height: 4cm;
        font-size: 19px;
        /*border: 1px solid black;*/
        display: table-cell; /*IE8及Chrome，Firefox支持*/
        vertical-align: middle; /*IE8及Chrome，Firefox支持*/
        text-align: center;
    	padding-left:5px;
    }
	.no-print{
		margin-bottom:10px;
	}
    @page{
        size:auto;
        margin:0mm
    }
    @media print {
        .pagebreak {
            clear: both;
            page-break-after: always;
        }
    }
</style>

